/*
 * @Author: 李天惊 uf_lee@163.com
 * @Date: 2022-08-30 15:08:39
 * @LastEditors: 李天惊 uf_lee@163.com
 * @LastEditTime: 2022-08-30 15:09:49
 * @FilePath: \ahbs\uc_sys\src\api\uc\roleApp\index.ts
 * Copyright (c) 2022 by 李天惊 uf_lee@163.com, All Rights Reserved.
 */
import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()

import { useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache()

// 角色应用权限查看
export const ucRoleAppSeeApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'ucRoleAppSee',
      data: data
    }
  })
}

// 角色应用权限设置
export const ucRoleAppSetApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'ucRoleAppSet',
      data: data
    }
  })
}
